<template>
  <div>
    <p>SkuForm</p>
    <el-button @click="$emit('setShowStatus', ShowStatus.SPU_LIST)">取消</el-button>
  </div>
</template>

<script lang="ts">
export default {
  name: 'SkuForm',
}
</script>

<script lang="ts" setup>
import { ShowStatus } from '../types';

// 声明定义自定义事件, 返回的是分发事件的函数
const emit = defineEmits<{
  (e: 'setShowStatus', value: ShowStatus): void
}>()
</script>

<style lang="scss" scoped>

</style>
